import request from "@/utils/request.js";

export function addressAnalysis(data){
	return request.get('address_analysis',data,{noAuth:true})
}

export function getFamilyIndexApi(){
  return request.get(`family/public/list`,{},{ noAuth : true});
}

/**
 * 发布找家教
 */
export function publishOrderApi(data){
  return request.post(`family/cat/publish`,data);
}
/**
 * 教员入驻
 */
export function insertTeacherApi(data){
  return request.post(`family/cat/insert_teacher`,data);
}
/**
 * 热门需求
 * 
*/
export function getHotOrderApi(data) {
  return request.post(`family/public/hotOrderList`,data);
}

/**
 * 热门老师
 * 
*/
export function getHotTeachersApi(data) {
  return request.post(`family/public/hotTeacherList`,data);
}

export function getCatAndCourseApi(data) {
  return request.get(`family/cat/getCatAndCourseApi`,data);
}

export function getTeacherDetailApi(data) {
  return request.get(`family/public/getTeacherDetail?id=`+data);
}

// 我发布的需求
export function getMyPublishApi(data) {
  return request.get(`family/cat/getMyPublish`,data);
}

// 需求详情
export function getOrderDetailApi(id) {
  return request.get(`family/public/getOrderDetail?id=`+id);
}

// 查看需求量
export function readOrderlApi(id) {
  return request.get(`family/public/readOrder?id=`+id);
}

// 投递
export function sendMyInfoApi(id) {
  return request.get(`family/cat/sendMyInfo?id=`+id);
}

// 我的投递
export function myDeliverylistApi() {
  return request.get(`family/cat/myDeliverylist`);
}


